

# 相对路径和绝对路径

# 相对路径 'friends.txt'
with open('friends.txt', 'rb') as fr:
# 绝对路径： /home/tarena/桌面/01_month01/day17_code/friends.txt
# with open('/home/tarena/桌面/01_month01/day17_code/friends.txt', 'rb') as fr:
    b = fr.read()
    print('b:', b)
    print('文件长度:', len(b))
